﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QuanLyTruong
{
    public partial class frmQuanLyCheDo : DevExpress.XtraEditors.XtraForm
    {
        public frmQuanLyCheDo()
        {
            InitializeComponent();
        }
        private void frmQuanLyCheDo_Load(object sender, EventArgs e)
        {
            ShowTabCheDoTheoChucVu();
        }
        private void rdTheoChucVu_SelectedIndexChanged(object sender, EventArgs e)
        {
            ShowTabCheDoTheoChucVu();
        }

        private void ShowTabCheDoTheoChucVu()
        {
            if (rdTheoChucVu.SelectedIndex == 0)
            {
                tabKhongTheoChucVu.PageEnabled = false;
                tabTheoCVu.PageEnabled = true;
            }
            else if (rdTheoChucVu.SelectedIndex == 1)
            {
                tabKhongTheoChucVu.PageEnabled = true;
                tabTheoCVu.PageEnabled = false;
            }
        }

        
    }
}